package gmusic.command;

import gmusic.bo.OptionBean;
import gmusic.services.impl.GMusicServicesImpl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class AfficherPreferences implements Command {

	// private final static Logger log =
	// Logger.getLogger(AfficherArtistsMA.class);

	public String execute(HttpServletRequest req) throws Exception {

		HttpSession session = req.getSession();
		List<OptionBean> options = GMusicServicesImpl.getInstance()
				.getOptions();
		session.setAttribute("options", options);

		return "/afficherPreferences.jsp";
	}
}
